using Gateway.Common.Enums;
using SqlSugar;

namespace Gateway.IQuery.SystemSetting.Result;

/// <summary>
/// 系统短信配置
/// </summary>
[SugarTable("SystemSms")]
public class SystemSmsDetailResult
{
    /// <summary>
    /// 短信状态 Y 开 N 关
    /// </summary>
    public string Status { get; set; }

    /// <summary>
    /// 格式化短信状态 
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    public bool StatusFormat => (Status ?? "").Equals(BooleanStatusEnum.Yes.Value);
    /// <summary>
    /// 短信key
    /// </summary>
    public string AppKey { get; set; }

    /// <summary>
    /// 短信 secret 
    /// </summary>
    public string SecretKey { get; set; }

}